package dao

import "red/global"

func First[T any](where, data *T) error {
	return global.DB.Where(&where).First(&data).Error
}
